<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">

<head>
    <meta content="text/html; charset=UTF-8"
        http-equiv="content-type" />
    <!--TODO--><link rel="stylesheet" href="/static/css/style.css" type="text/css"></link>
    <title>Log in</title>
    <link rel="icon" href="/static/images/favicon.ico" type="image/png" />
</head>

<?python
from turbogears.i18n import gettext as _
from turbogears import identity
?>


<body style="color:#3F3F3F; font-size:120%; line-height:1.5em;">
    <div id="login" style="border:1px solid #AFB6BD;
                            height:100%;
                            margin:15% auto 0pt;
                            padding:1em;
                            padding-top:0;
                            text-align:left;
                            width:325px;">
        <h1>Log in</h1>
        <p>
            <span>
                ${message}
            </span> 

        <a py:if='identity.was_login_attempted()' href='mailto:ts@scvt.ru?subject=base'>
            Send a request to the Technical Service
        </a>
        </p>
        <!--<p>[ <a href="javascript:history.back()">Back</a> ]</p>-->
        <form action="${previous_url}" method="POST" style="margin:1em 0 0 0; padding:0pt;">
            <table>
                <tr>
                    <td class="label">
                        <label for="user_name">User Name:</label>
                    </td>
                    <td class="field">
                        <input type="text" id="user_name" name="user_name"/>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <label for="password">Password:</label>
                    </td>
                    <td class="field">
                        <input type="password" id="password" name="password"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="buttons">
                        <input type="submit" name="login" value="${_('Enter')}"/>
                    </td>
                </tr>
            </table>

            <input py:if="forward_url" type='hidden' name="forward_url"
                value="${forward_url}"/>

            <input py:for="name,value in original_parameters.items()"
                type="hidden" name="${name}" value="${value}"/>
        </form>
    </div>
</body>
</html>
